Fully Qualified Name: | Laminas\Filter\File\RenameUpload |
Extends: | AbstractFilter |
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | RenameUpload |
__invoke() | Invoke filter as a command | AbstractFilter |
filter() | Defined by Laminas\Filter\Filter | RenameUpload |
getOptions() | Retrieve options representing object state | AbstractFilter |
getOverwrite() | RenameUpload | |
getRandomize() | RenameUpload | |
getStreamFactory() | RenameUpload | |
getTarget() | RenameUpload | |
getUploadFileFactory() | RenameUpload | |
getUseUploadExtension() | RenameUpload | |
getUseUploadName() | RenameUpload | |
hasPcreUnicodeSupport() | AbstractFilter | |
setOptions() | AbstractFilter | |
setOverwrite() | RenameUpload | |
setRandomize() | RenameUpload | |
setStreamFactory() | RenameUpload | |
setTarget() | RenameUpload | |
setUploadFileFactory() | RenameUpload | |
setUseUploadExtension() | RenameUpload | |
setUseUploadName() | RenameUpload |
Constructor
Parameter Name | Type | Description |
---|---|---|
$targetOrOptions | array|string | The |
Returns:
Invoke filter as a command
Proxies to {@link filter()}
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: mixed
Defined by Laminas\Filter\Filter
Renames the file $value to the new name set before Returns the file $value, removing all but digit characters
Parameter Name | Type | Description |
---|---|---|
$value | string|array|\UploadedFileInterface | Full |
Returns: string|array|\UploadedFileInterface Returns one of the following: - New filename, for string $value - Array with tmp_name and name keys for array $value - UploadedFileInterface for UploadedFileInterface $value
Retrieve options representing object state
Returns: array
Returns: bool
Returns: bool
Returns: null|\StreamFactoryInterface
Returns: string Target file path or directory
Returns: null|\UploadedFileFactoryInterface
Returns: bool
Returns: bool
Returns: bool
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$flag | bool | Shall |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$flag | bool | Shall |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$factory | \StreamFactoryInterface | Factory |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$target | string | Target |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$factory | \UploadedFileFactoryInterface | Factory |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$flag | bool | When |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$flag | bool | When |
Returns: self